<template>
<!--
点击按钮收缩的
-->
  <div class="Hamburger" style="padding: 0 15px;" @click="toggleClick">
    <i :class="isActive ? 'el-icon-s-fold': 'el-icon-s-unfold' " class="icon"></i>
  </div>

</template>

<script>
export default {
  name: 'index',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick () {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped lang="scss">
.Hamburger {
  height: 64px;
  width: 64px;
  .icon {
    font-size: 25px;
  }
}
</style>
